package org.gxuwz.core.service.Impl;

import java.util.List;

import org.gxuwz.core.dao.IChrDisSynDao;
import org.gxuwz.core.dao.IFamilyFilesDao;
import org.gxuwz.core.entity.TChronicdisz;
import org.gxuwz.core.entity.TFamily;
import org.gxuwz.core.service.IChrDisSynService;
import org.gxuwz.core.service.IFamilyFilesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("ChrDisSynService")
public class ChrDisSynService  implements IChrDisSynService{

	@Autowired
	IChrDisSynDao chrdao;

	@Override
	public void addChrDisSynService(TChronicdisz chrdissyn) {
		chrdao.addChrDisSynDao(chrdissyn);
		
	}

	@Override
	public List<TChronicdisz> getAll(String chrdissynid, String perscode) {
		return chrdao.getAll(chrdissynid, perscode);
	}

	@Override
	public TChronicdisz getByPersCode(String perscode) {
		return chrdao.getByPersCode(perscode);
	}

	@Override
	public void update(TChronicdisz chrdissyn) {
		chrdao.update(chrdissyn);
		
	}

	@Override
	public void delete(TChronicdisz chrdissyn) {
		chrdao.delete(chrdissyn);
		
	}

}
